{case value="readonly"}
    <input name="{$_item.name}" type="text" class="form-control" value="{$_data[$_item['name']]|addslashes}" readonly="readonly">
{/case}